<template>
    <div class="my">
        <div class="b-top">

        </div>
        <div class="fix">
            <div class="my-back">
                <div>
                    <div class="my-back-imgCon">

                    </div>
                    <div class="my-back-name">
                        <div>
                            <span>OMINI.BASS</span>
                            <i class="iconfont icon-bianji"></i>
                        </div>
                        <div>
                            认证教练
                        </div>
                    </div>
                    <div @click="link" class="iconfont icon-fenxiang">

                    </div>
                </div>
                <section>
                    <router-link to="my/dynamic">
                        <div>
                            <span>12</span>
                            <span>动态</span>
                        </div>
                    </router-link>
                    <router-link to="my/attention">
                        <div>
                            <span>16</span>
                            <span>关注</span>
                        </div>
                    </router-link>
                    <router-link tag="div" to="my/fans">
                        <span>123.5w</span>
                        <span>粉丝</span>
                    </router-link>
                </section>
                <div>

                </div>
            </div>
            <router-link class="my-top" tag="div" to="/index/my/moveCareer">
                <h4>运动生涯</h4>
                <div>
                    <div>
                        <span>9.68W</span>
                        <span>KCAL</span>
                    </div>

                    <div>
                        <span>966</span>
                        <span>MIN</span>
                    </div>
                    <div>

                        <span>156</span>
                        <span>DAY</span>
                    </div>
                </div>
            </router-link>
            <div class="my-bottom">
                <ul>
                    <router-link to="my/myCourse">
                        <li>
                            <i class="iconfont icon-kecheng"></i>
                            <span>我的课程</span>
                        </li>
                    </router-link>
                    <router-link to="my/postCourse">
                        <li>
                            <i class="iconfont icon-fabu"></i>
                            <span>发布课程</span>
                        </li>
                    </router-link>

                    <router-link to="my/plan">
                        <li>
                            <i class="iconfont icon-jihua"></i>
                            <span>我的计划</span>
                        </li>
                    </router-link>

                    <router-link to="my/save">
                        <li>
                            <i class="iconfont icon-shoucang"></i>
                            <span>我的收藏</span>
                        </li>
                    </router-link>
                    <router-link to="my/device">
                        <li>
                            <i class="iconfont icon-miaobiao"></i>
                            <span>智能设备</span>
                        </li>
                    </router-link>
                    <router-link to="my/money">
                        <li>
                            <i class="iconfont icon-dilanxianxingiconyihuifu_huabanfuben"></i>
                            <span>我的钱包</span>
                        </li>
                    </router-link>
                    <router-link to="my/order">
                        <li>
                            <i class="iconfont icon-24px"></i>
                            <span>我的订单</span>
                        </li>
                    </router-link>
                    <router-link to="my/setting/setting">
                        <li>
                            <i class="iconfont icon-shezhi"></i>
                            <span>设置</span>
                        </li>
                    </router-link>
                </ul>
            </div>
        </div>
        <div class="b-bottom">

        </div>
        <BottomBar class="bb"></BottomBar>
    </div>
</template>

<script>
    import BottomBar from "../../component/BottomBar";

    export default {
        name: "my",
        components: {
            BottomBar
        },
        methods:{
            link(){
                this.$router.push('/index/my/dynamic')
            }
        }
    }
</script>

<style scoped>
    .icon-fenxiang {
        color: #ffffff;
        font-size: 0.21rem;
        margin: -0.1rem 0 0 1.5rem;
        font-weight: 600;
    }

    section {
        display: flex;
        margin: 0.05rem 0 0 0
    }

    section div {
        display: flex;
        margin-left: 0.2rem;
        flex-direction: column;
    }

    section div span {
        font-size: 0.12rem;
        color: #ffffff;

    }

    .my-back-name {
        margin-left: 0.15rem;
    }

    .my-back-name div:nth-child(1) {
        color: #F8F7FF;
    }

    .my-back-name div:nth-child(2) {
        background-color: #6F86E5;
        margin-top: 0.05rem;
        width: 0.6rem;
        height: 0.15rem;
        font-size: 0.12rem;
        color: #ffffff;
        border-radius: 16rem;
        line-height: 0.15rem;
        text-align: center;
    }

    .my-back-imgCon {
        height: 0.5rem;
        width: 0.5rem;
        border-radius: 50%;
        background: url("../../assets/img/my-back.jpg") no-repeat;
        background-size: cover;
    }

    .my-back {
        height: 1rem;
    }

    .my-back > div {
        display: flex;
    }

    .b-bottom {
        height: 4rem;
        width: 100%;
    }

    .b-top {
        background: url("../../assets/img/my-back.jpg") no-repeat;
        background-size: cover;
        height: 1.92rem;
        width: 100%;
    }

    .fix {
        margin: 0.165rem;
        position: absolute;
        top: .2rem;
        left: 0;
        width: 100%;
    }

    .my {
        position: relative;
    }

    .fix .my-top {
        padding: 0.1rem;
        width: calc(100% - 0.3rem);
        height: 0.95rem;
        background-color: #ffffff;
        border-radius: 5%;
        margin-bottom: 0.18rem;
        box-shadow: 0.01rem 0.06rem 0.12rem -0.01rem rgba(152, 162, 179, .2), 0 0.04rem 0.04rem -0.01rem rgba(152, 162, 179, .2), 0 0.02rem 0.02rem 0 rgba(152, 162, 179, .2);
    }

    .my-top h4 {
        font-weight: 600;
    }

    .my-top > div {
        margin-top: 0.12rem;
        display: flex;
        justify-content: space-around;
    }

    .my-top > div > div {
        display: flex;
        text-align: center;
        flex-direction: column;
    }

    .my-top > div > div span {
        font-weight: 600;
    }

    .my-top > div > div span:nth-child(1) {
        font-size: 0.15rem;
    }

    .my-top > div > div span:nth-child(2) {
        font-size: 0.12rem;
        color: #cccccc;
    }

    .fix .my-bottom {
        box-shadow: 0 0.02rem 0.1rem rgba(0, 0, 0, .45);
        width: calc(100% - 0.3rem);
        height: 3.3rem;
    }

    .my-bottom i {
        font-size: 0.2rem;
        font-weight: 600;
    }

    ul li::after {
        content: "";
        width: 0.08rem;
        height: 0.08rem;
        background-color: transparent;
        border-top: 0.02rem solid #CCCCCC;
        border-right: 0.02rem solid #cccccc;
        position: absolute;
        right: 0.2rem;
        top: 0.2rem;
        transform: rotate(45deg);
    }


    .my-bottom li {
        padding: 0.06rem;
        position: relative;
        margin-left: 0.02rem;
        line-height: 0.27rem;
        vertical-align: center;
        color: black;
    }

    .my-bottom span {
        font-size: 0.15rem;
        margin-left: 0.15rem;
    }
</style>